﻿CREATE FUNCTION [config].[GetInstanceSetting](
	@Name NVARCHAR (256)
) RETURNS NVARCHAR (256)
AS
BEGIN
	DECLARE @ReturnValue nvarchar(256)

	SELECT @ReturnValue = CAST([Value] AS nvarchar(256))
	FROM [config].[InstanceSettings]
	WHERE ([Name] = @Name)

	RETURN(@ReturnValue)
END